﻿using B.S.BaseData.ErrorCode;
using MediatR;

namespace B.S.BaseData.Write.Api.Application.Command.MenuCommand
{
    public class UpdateMenuCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 点击菜单要跳转的地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 父级id,顶级菜单是0
        /// </summary>
        public int PId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public int CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改人
        /// </summary>
        public int? UpdateBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public string? UpdateDate { get; set; }
    }
}
